<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../include.jsp"%>

<!DOCTYPE html>
<html lang="zh-cn">

<head>
	<meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>后台管理</title>
    
    <!-- 新 Bootstrap 核心 CSS 文件 -->
	<link rel="stylesheet" href="${ctx }/static/admin/css/bootstrap.css"/>
	<link rel="stylesheet" href="${ctx }/static/admin/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="${ctx }/static/admin/css/dashboard.css"/>
	<link rel="stylesheet" href="${ctx}/static/kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="${ctx }/static/admin/bootgrid/jquery.bootgrid.css"/>

	<script src="${ctx }/static/lib/jquery-1.11.1.min.js"></script>
	<script src="${ctx }/static/lib/jquery.cookie-1.3.1.js"></script>

    <script src="${ctx }/static/admin/js/moderniz.2.8.1.js"></script>
	<script src="${ctx }/static/admin/js/bootstrap.min.js"></script>
	<script src="${ctx }/static/admin/bootgrid/jquery.bootgrid.js"></script>
	<script src="${ctx }/static/admin/jquery-validate/jquery.validate.min.js"></script>
	<script src="${ctx }/static/admin/jquery-validate/jquery.validate-extend.js"></script>
	
	<script src="${ctx}/static/kindeditor/kindeditor.js"></script>
	<script src="${ctx}/static/kindeditor/kindeditor-min.js"></script>
	<script src="${ctx}/static/kindeditor/lang/zh_CN.js"></script>
	
	<script src="${ctx }/static/lib/xhzutils.js"></script>
	<script src="${ctx }/static/lib/jquery.sortable.js"></script>
	 <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
     <![endif]-->
    <script>
		var ctx = "${ctx}" ;
	</script>
</head>

<body>
<tiles:insertAttribute name="header" ignore="true" />

<div class="container-fluid">
    <div class="row">
      <div class="col-sm-3 col-md-2 sidebar  affix" style="padding:0px;">	
      	<tiles:insertAttribute name="nav" ignore="true" />	
      </div>
      <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
      	<div class="row responsive">
			<ol class="breadcrumb">
			  <li><a href="${ctx }">主页</a></li>
			  
			  <c:if test="${!empty menusVOs && !empty menuType}">
			  <c:forEach items="${menusVOs }" var="menu">
		  		<c:if test="${menu.id == menuType }">
		  			<li><a href="#">${menu.title }</a></li>
		  			<c:if test="${ !empty menu.children}">
		  				<c:forEach items="${menu.children }" var="menuChild">
					  		<c:if test="${menuChild.id == menuNextType }">
					  			<li>${menuChild.title }</li>
					  		</c:if>
					  	</c:forEach>
		  			</c:if>
		  		</c:if>
			  </c:forEach>
			  </c:if>
			</ol>
		</div>
		<tiles:insertAttribute name="content" ignore="true" />	
     </div>
   </div>
 </div>
 
 <!-- layoutModal -->
<div class="modal fade" id="layoutModal" tabindex="-1" role="dialog" aria-labelledby="layoutModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
    </div>
  </div>
</div>

 <!-- alertModal -->
<div class="modal fade" id="alertModal" tabindex="-1" role="dialog" aria-labelledby="alertModalLabel" aria-hidden="true" style="z-index: 10000">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
	    <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="alertModalLabel"><strong>警告</strong></h4>
        </div>
        <div class="modal-body">
        </div>
    </div>
  </div>
</div>

 <!-- dialogModal -->
<div class="modal fade" id="dialogModal" tabindex="-1" role="dialog" aria-labelledby="dialogModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
    	<div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="dialogModalLabel"><strong>消息</strong></h4>
        </div>
        <div class="modal-body">
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
          <button type="button" class="btn btn-primary" id="dialogBtn">确定</button>
        </div>
    </div>
  </div>
</div>
<script type="text/javascript">
$(function(){
	$('#layoutModal').on('hidden.bs.modal', function (e) {
	  	$(this).removeData("bs.modal");
	});
	$('#alertModal').on('hidden.bs.modal', function (e) {
		  $(this).removeData("bs.modal");
	});
	$('#dialogModal').on('hidden.bs.modal', function (e) {
		  $(this).removeData("bs.modal");
	});
	
});
</script>
</body>
</html>
